<div class="order_info_2" style="display: none;">
			
			<table class="layui-table" style="width:1860px;" lay-filter="order_view">
				<thead>
					<tr>
						<th style="width: 80px;"></th>
						<th style="width: 160px;">收货人</th>
						<th style="width: 160px;">手机号</th>
						<th style="width: 240px;">地址</th>
						<th style="width: 160px;">订单号</th>
						<th style="width: 240px;">销项票开票产品名称</th>
						<th style="width: 240px;">抬头</th>
						<th style="width: 240px;">供应商</th>
						<th style="width: 240px;">用户订单备注</th>
						<th style="width: 100px;">前端状态</th>
						<th style="width: 100px;">金额</th>
					</tr>
				</thead>
				<tbody id="order_info_box_2">

				</tbody>
			</table>
			<table class="layui-table" style="width:1000px ;" lay-filter="xinxi_view">
				<thead>
					<tr>
						<th style="width: 240px;">付款单位</th>
						<th style="width: 360px;">地址</th>
						<th style="width: 160px;">手机号</th>
						<th style="width: 240px;">销项票</th>
					</tr>
				</thead>
				<tbody id="pkxx_box_2">
			
				</tbody>
			</table>
			<a type="button" id="implodePkd" style="display: none;">导入匹款单</a>
			<a type="button" id="implodeXx" style="display: none;">导入汇款单位</a>
		</div>
<div class="search-box">
	<form class="search_form layui-form" lay-filter="chakuan_search_form">
		<div class="layui-inline">
			<label class="layui-form-label">回款编号</label>
			<div class="layui-input-inline">
				<input type="text" name="return_code" style="width: 300px;" placeholder="支持多个回款编号,英文逗号分割" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">打款单位</label>
			<div class="layui-input-inline">
				<input type="text" name="title" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">订单号</label>
			<div class="layui-input-inline">
				<input type="text" name="order_no" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-input-inline">
			<select name="order_type" lay-filter="order_type" id="order_type">
				<option value="">认款状态</option>
				<option value="-2">后台匹配中</option>
				<option value="-1">无匹配订单</option>
				<option value="0">有匹配订单</option>
				<option value="1">已认款</option>
				<option value="3">待核实</option>
				<option value="2">已确认</option>
			</select>
		</div>
		<div class="layui-input-inline">
			<select name="zhiyi_state" lay-filter="zhiyi_state" id="zhiyi_state">
				<option value="">质疑状态</option>
				<option value="1">通过</option>
				<option value="2">驳回</option>
			</select>
		</div>
		<div class="layui-inline">
			<div class="layui-input-inline">
				<input type="text" name="min_order_money" autocomplete="off" class="layui-input" placeholder="最低金额">
			</div>
			<div class="layui-input-inline">
				<input type="text" name="max_order_money" autocomplete="off" class="layui-input" placeholder="最高金额">
			</div>
			<div class="layui-input-inline">
				<input type="text" name="order_money" autocomplete="off" class="layui-input" placeholder="准确金额">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">质疑人</label>
			<div class="layui-input-inline">
				<input type="text" name="zhiyiren" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-input-inline" style="display:none;">
			<select name="qiantai" lay-filter="qiantai" id="qiantai">
				<option value="">前台状态</option>
				<option value="0">无效订单</option>
				<option value="1">待确认</option>
				<option value="2">待发货</option>
				<option value="3">待支付</option>
				<option value="4">待收货</option>
				<option value="5">已完成</option>
				<option value="6">已退货</option>
				<option value="7">已取消</option>
				<option value="8">待妥投</option>
				<option value="9">已废止</option>
			</select>
		</div>
		<div class="layui-input-inline">
			<select name="dianqiantai" lay-filter="dianqiantai" id="dianqiantai">
				<option value="">点前台</option>
				<option value="0">否</option>
				<option value="1">是</option>
			</select>
		</div>
		<div class="layui-input-inline">
			<input type="text" name="pay_time_start" id="pay_time_start_2" autocomplete="off" class="layui-input" placeholder="回款开始日期">
		</div>
		<div class="layui-input-inline">
			<input type="text" name="pay_time_end" id="pay_time_end_2" autocomplete="off" class="layui-input" placeholder="回款结束日期">
		</div>
		<div class="layui-input-inline">
			<input type="text" name="create_time_start" id="create_time_start_2" autocomplete="off" class="layui-input" placeholder="认款开始日期">
		</div>
		<div class="layui-input-inline">
			<input type="text" name="create_time_end" id="create_time_end_2" autocomplete="off" class="layui-input" placeholder="认款结束日期">
		</div>
		<div class="layui-inline">
			<div class="layui-input-inline">
				<button lay-submit lay-filter="chakuan_search_btn" id="chakuan_search_btn"
					class="layui-btn layui-btn-normal layui-btn-sm layui-bg-red">搜 索</button>
			</div>
		</div>
		<div class="pack-up"></div>
	</form>
</div>
<table class="layui-hide" id="chakuan_list" lay-filter="chakuan_list"></table>
<div id="zhiyi_info" style="display: none; padding: 20px;">
			<div class="layui-form" style="display: flex; justify-content: space-between;width: 100%;">
				<div>
				<textarea name="input_order" id="input_order" style="height: 300px;width: 180px;" placeholder="粘贴/输入订单号,每行一个订单" class="layui-textarea"></textarea>
				<div><button type="button" id="search_order_btn" class="layui-btn layui-btn-normal search_order_btn" style="width: 180px;">搜索订单号</button></div>
				</div>
				<div>
					<div id="check_order" style="height: 260px; width: 740px; border: 1px solid #f0f0f0; overflow-y: auto;">
						
					</div>
					<form style="margin-left:20px;" class="layui-form">
					<div style="line-height: 36px;">总金额：<span id="caigou_all_money" style="margin-right:20px">0</span>
						<input type="checkbox" name="" id="dianqiantai_form" title="点前台" /> 
						<div class="layui-form-item mul-return-code">
							<label class="layui-form-label" style="width: 60px;">回款单号</label>
							<div class="layui-input-inline" style="width: 500px;">
								<input type="text" placeholder="一个订单拥有多个回款单号,使用英文逗号分割" name="return_code_mul" id="return_code_mul"  class="layui-input" />
							</div>
						</div>
					</div>
					</form>
				</div>
			</div>
		</div>
		
<script>
	var pikuan_list_url = "{:url('pikuan/ajaxList')}";
	var pikuan_cols = {$cols};
	var zhiyi_url = "{:url('pikuan/zhiyi')}";
	var search_order_no_url = "{:url('order/searchOrderNo')}";
	var exportrk_url = '{:url("Pikuan/exportrk")}';
	var viewOrder_url = '{:url("Pikuan/viewOrder")}';
</script>

<script type="text/html" id="chakuanToolbar">
	{if condition="menuAuth('renkuan_dcjg')"}
	<div class="layui-btn-container">
		<a type="button" id="exportrk" data-id="exportrk" data-url="{:url('pikuan/exportrk')}" data-title="导出查询结果"
		 class="layui-btn layui-btn layui-btn-sm" lay-event="exportrk">导出查询结果</a>
		<a type="button" class="layui-btn layui-btn-primary layui-btn-sm">当日 9 点半之前更新前一天下午和晚上的流水，当日12点更新当日上午的流水</a>
		<!-- <a type="button" id="qiantai" data-id="qiantai" data-url="{:url('pikuan/qiantai')}" data-title="导入前台状态"
		 class="layui-btn layui-btn-sm" lay-event="qiantai">导入前台状态</a> -->
	</div>
	{/if}
</script>
<!-- <script type="text/html" id="chakuanToolbar">
	<div class="layui-btn-container">
		<a type="button" data-id="import-pikuan" data-url="{:url('pikuan/importpk')}" data-title="匹款"
		 class="layui-btn layui-btn-normal layui-btn-sm tap-nav" lay-event="importPikuan">匹款</a>
	</div>
</script> -->
<script type="text/html" id="chakuan_tool">
	<div class="layui-btn-group">
		{{# if(d.state == 3){}}
		<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="view" data-title="查看">
			<i class="layui-icon layui-icon-rate-solid"></i>
		</a>
		{{# } }}
		{{# if(d.state != 2){ }}
			<a class="layui-btn layui-btn-danger layui-btn-xs tap-nav" lay-event="zhiyi" data-title="质疑/认款"><i
				 class="layui-icon layui-icon-template"></i></a>
		{{# } }}
	</div>
</script>
<script type="text/html" id="stateTpl"> 
	{{# if(d.state == -2){}}
		<div class="layui-anim circle layui-bg-gray" data-title="后台匹配中">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
	{{# }else if(d.state == -1){ }}
		<div class="layui-anim circle layui-bg-red" data-title="无匹配订单">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
	{{# }else if(d.state == 0){ }}
		<div class="layui-anim circle layui-bg-cyan" data-title="有匹配订单">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
	{{# }else if(d.state == 1){ }}
		<div class="layui-anim circle layui-bg-green" data-title="已认款">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
	{{# }else if(d.state == 3){ }}
		<div class="layui-anim circle layui-bg-orange" data-title="待核实">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
	{{# }else if(d.state == 2){ }}
		<div class="layui-anim circle layui-bg-blue" data-title="已完成">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
	{{# }}}
</script>
<script type="text/html" id="dianqiantaiTpl">
{{# if(d.dianqiantai == 0){}}
	<div class="layui-anim circle layui-bg-orange" data-title="否">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
		{{# }else { }}
			<div class="layui-anim circle layui-bg-green" data-title="是">
				<i class="layui-icon layui-icon-radio"></i>
			</div>
			{{# } }}
</script>
<script type="text/html" id="zhiyi_stateTpl">
{{# if(d.zhiyi_state == 0){}}
	<div class="layui-anim circle layui-bg-orange" data-title="等待处理">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }else if(d.zhiyi_state == 1) { }}
		<div class="layui-anim circle layui-bg-green" data-title="已通过">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
		{{# }else { }}
			<div class="layui-anim circle layui-bg-red" data-title="已驳回">
				<i class="layui-icon layui-icon-radio"></i>
			</div>
			{{# } }}
</script>
<script type="text/html" id="jun_order_stateTpl">
	{{# var text = ''; 
	switch(d.jun_order_state){ 
		case 0: text = '<span style="color: #FF5722;">无效订单</span>';break;
		case 1: text = '<span style="color: #FF5722;">待确认</span>'; break; 
		case 2: text = '<span style="color: #FFB800;">待发货</span>'; break; 
		case 3: text = '<span style="color: #01AAED;">待支付</span>'; break; 
		case 4: text = '<span style="color: #2F4056;">待收货</span>'; break; 
		case 5: text = '<span style="color: #009688;">已完成</span>'; break; 
		case 6: text = '<span style="color: #c2c2c2;">已退货</span>';break;
		case 7: text = '<span style="color: #c2c2c2;">已取消</span>';break;
		case 8: text = '<span style="color: #c2c2c2;">待妥投</span>'; break; 
		case 9: text = '<span style="color: #c2c2c2;">已废止</span>'; break; 
		default: text = '<span style="color: #c2c2c2;">未同步</span>'; break; 
	} 
		return text; 
	}}
	</script>
<script type="text/html" id="zhiyiTpl">
	{{# 
		try{
			return d.zhiyi_order.split(",").join("<br />"); 
		} catch(error){
			return ''
		}
	}}
</script>
<script src="/static/js/pikuan/chakuan.js?t=20231112" type="text/javascript" charset="utf-8"></script>
<style>
	.layui-table-cell{
		height: auto!important;
	}
</style>